package com.yinhai.model;

import java.io.Serializable;

import com.tgb.lk.ahibernate.annotation.Column;
import com.tgb.lk.ahibernate.annotation.Id;
import com.tgb.lk.ahibernate.annotation.Table;
@Table(name = "contact_user") 
public class ContactsUser  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4349017299785205448L;

	@Id
	@Column(name = "id")
	private int id;

	@Column(name = "name", length = 40)
	private String name; // 名字长度一般不会超过20个字符吧,length=20数据字段的长度是20
	@Column(name = "tel_phone", length = 12)
	private String telPhone;//手机号码
	
	@Column(name = "type", length = 2)
	private String type;//通讯录类别，1本地通讯录，2集团通讯录数据
	@Column(name = "group_id", length = 18)
	private String groupId;//集团通讯录分组ID
	@Column(name = "group_name", length = 100)
	private String groupName;//分组名称
	@Column(name = "userid", length = 20)
	private String userid;//集团通讯录存放重接口获取的唯一标识，本地通讯录的数据存放thread_id；
	@Column(name = "short_num", length = 6)
	private String shortNum;//集团短号
	@Column(name = "first_py", length = 40)
	private String firstpy;//拼音首字母
	@Column(name = "name_simple", length = 40)
	private String nameSimple;//拼音首字母数字
	@Column(name = "full_py", length = 100)
	private String fullpy;//全拼
	@Column(name = "full_py_num", length = 100)
	private String fullpynum;//全拼对应键盘数字
	@Column(name = "full_py_sep", length = 200)
	private String fullpysep;//全拼拼音分隔
	@Column(name = "full_py_num_sep", length = 200)
	private String fullpynumsep;//全拼拼音对应键盘数字分隔
	@Column(name = "short_num_new", length = 6)
	private String shortNumNew;//集团短号
	
	@Column(name = "usort", length = 11)
	private int usort;//排序字段
    
    @Column(name = "company_id", length = 100)
    private String compId;
	
	/**
	 * 是否显示长号 1显示0不显示
	 */
	@Column(name = "isshowtel", length = 5)
	private String isshowtel;
	private boolean isCheck;
	private String changeType;//字体变颜色类型  1 是姓名中的文字变色，2是电话号码中的数字变颜色,3是 姓名和号码都匹配
	private int start;//开始位置
	private int end;//结束位置
	@Column(name="im_user_name",length=50)
	private String imUserName;//IM帐号
	private String duty;
	
	@Override
	public String toString() {
		return "id=" + id + ", name=" + name+", type="+type;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getFullpy() {
		return fullpy;
	}
	public void setFullpy(String fullpy) {
		this.fullpy = fullpy;
	}
	public String getFirstpy() {
		return firstpy;
	}
	public void setFirstpy(String firstpy) {
		this.firstpy = firstpy;
	}
	public int getUsort() {
		return usort;
	}
	public void setUsort(int usort) {
		this.usort = usort;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getTelPhone() {
		return telPhone;
	}
	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getShortNum() {
		return shortNum;
	}
	public void setShortNum(String shortNum) {
		this.shortNum = shortNum;
	}
	public String getNameSimple() {
		return nameSimple;
	}
	public void setNameSimple(String nameSimple) {
		this.nameSimple = nameSimple;
	}

	public boolean isCheck() {
		return isCheck;
	}
	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
	}
	public String getChangeType() {
		return changeType;
	}
	public void setChangeType(String changeType) {
		this.changeType = changeType;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	public String getFullpynum() {
		return fullpynum;
	}
	public void setFullpynum(String fullpynum) {
		this.fullpynum = fullpynum;
	}
	public String getFullpysep() {
		return fullpysep;
	}
	public void setFullpysep(String fullpysep) {
		this.fullpysep = fullpysep;
	}
	public String getFullpynumsep() {
		return fullpynumsep;
	}
	public void setFullpynumsep(String fullpynumsep) {
		this.fullpynumsep = fullpynumsep;
	}
	public String getIsshowtel() {
		return isshowtel;
	}
	public void setIsshowtel(String isshowtel) {
		this.isshowtel = isshowtel;
	}
	public String getImUserName() {
		return imUserName;
	}
	public void setImUserName(String imUserName) {
		this.imUserName = imUserName;
	}
    public String getDuty() {
        return duty;
    }
    public void setDuty(String duty) {
        this.duty = duty;
    }
    public String getCompId() {
        return compId;
    }
    public void setCompId(String compId) {
        this.compId = compId;
    }
	public String getShortNumNew() {
		return shortNumNew;
	}
	public void setShortNumNew(String shortNumNew) {
		this.shortNumNew = shortNumNew;
	}
	
}
